﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace RSS_Reader
{
    public partial class NewPage : PhoneApplicationPage
    {
        public NewPage()
        {
            InitializeComponent();
        }

        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            String link = NavigationContext.QueryString["link"];
            browserNews.Navigate(new Uri(link));
        }

        private void browserNews_LoadCompleted(object sender, NavigationEventArgs e)
        {
            prgLoading.Visibility = System.Windows.Visibility.Collapsed;
        }
    }
}